/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo928;

import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class StudentArrayDemo3 {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        Student students[] = new Student[3];
        String no1;
        String name1;
        int score1;
        for (int i = 0; i < students.length; i++) {
            no1 = sc.next();
            name1 = sc.next();
            score1 = sc.nextInt();
            students[i] = new Student(no1, name1, score1);
        }
//        for (int i = 0; i < students.length; i++) {
//            students[i].getInfo();
//        }
        for (Student s : students) {
            s.getInfo();
        }
    }
}
